import { createRouter, createWebHashHistory } from 'vue-router'

const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'navigationPage',
      component: () => import('@/views/navigationPage/index.vue')
    },
    // 故障设备列表
    {
      path: '/faultDeviceList',
      name: 'faultDeviceList',
      component: () => import('@/views/faultDeviceList/index.vue')
    },
    // 资产报修
    {
      path: '/assetRepairReport',
      name: 'assetRepairReport',
      component: () => import('@/views/faultDeviceList/assetRepairReport.vue')
    },
    // 故障设备维修进度
    {
      path: '/maintenanceProgress',
      name: 'maintenanceProgress',
      component: () => import('@/views/faultDeviceList/maintenanceProgress.vue')
    },
    // demo
    {
      path: '/demo',
      name: 'demo',
      component: () => import('@/views/demo/index.vue')
    }
  ]
})

export default router
